﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JohnnySins.Entities
{
    public class User
    {
        public Guid UserId { get; set; }
        public int Id { get; set; }
        public string UserName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public int PaymentTypeId { get; set; }
        public string PaymentTypeName { get; set; }
        public int? CountryId { get; set; }
        public string CountryName { get; set; }
        public string Zip { get; set; }
        public bool IsAdmin { get; set; }
        public bool IsActive { get; set; }
        public string Password { get; set; }
        public DateTime CreateDate { get; set; }
        public string StatusName
        {
            get
            {
                return IsActive ? "Active" : "Inactive";
            }
        }
        public string FullName
        {
            get
            {
                return FirstName + " " + LastName;
            }
        }

    }

    public class Country
    {
        public int CountryId { get; set; }
        public string CountryName { get; set; }
    }

    public class PaymentType
    {
        public int PaymentTypeId { get; set; }
        public string PaymentTypeName { get; set; }
    }
}
